package cn.itcast.redisdemo.web;

import cn.itcast.redisdemo.service.HelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/hello")
public class HelloController {
    
    @Resource
    HelloService helloService;
    @GetMapping("/1")
    public void testLockAnno() throws InterruptedException {
        helloService.testLockAnno();
    }
}
